home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-19 | 1.1 KB | 37 lines | [TEXT/GEOL] |
- Item forwarded by ALCABES to CPLUS.APPLE$
-
- Item 7846321 17-Jan-90 12:18
-
- From: D0578 Shiva,PRT
-
- To: CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: C++ and the "asm" keyword
-
- Help! I'm having a small problem with the C++ compiler, which may reflect a
- deficiency in my own understanding.
-
- It involves the "asm" keyword.
- According to the AT&T manuals provided with the compiler, the proper syntax of
- the "asm" keyword is as follows:
-
- asm ( string );
-
- I tried the following in my code (an ATP completion routine)
-
- asm (
- MOVE.L A0,D0 ; put pointer to param blk in correct register
- MOVEQ #app1Evt,A0 ; event number in A0
- _PostEvent ; and put it into the queue
- );
-
- It doesn't work at all. In fact, the very first line generates a "syntax
- error". It then announces errors on all the following lines.
- What am I doing wrong? Is "asm" implemented in MPW's CFront?
-
- Thanks in advance for the help.
-
- Mark Pesce,
- Shiva Corporation
-
-